package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ExclusiveBenefitsMapper;
import com.ruoyi.system.domain.ExclusiveBenefits;
import com.ruoyi.system.service.IExclusiveBenefitsService;

/**
 * 权益管理Service业务层处理
 * 
 * @author 何志龙
 * @date 2024-09-17
 */
@Service
public class ExclusiveBenefitsServiceImpl implements IExclusiveBenefitsService 
{
    @Autowired
    private ExclusiveBenefitsMapper exclusiveBenefitsMapper;

    /**
     * 查询权益管理
     * 
     * @param BenefitID 权益管理主键
     * @return 权益管理
     */
    @Override
    public ExclusiveBenefits selectExclusiveBenefitsByBenefitID(Long BenefitID)
    {
        return exclusiveBenefitsMapper.selectExclusiveBenefitsByBenefitID(BenefitID);
    }

    /**
     * 查询权益管理列表
     * 
     * @param exclusiveBenefits 权益管理
     * @return 权益管理
     */
    @Override
    public List<ExclusiveBenefits> selectExclusiveBenefitsList(ExclusiveBenefits exclusiveBenefits)
    {
        return exclusiveBenefitsMapper.selectExclusiveBenefitsList(exclusiveBenefits);
    }

    /**
     * 新增权益管理
     * 
     * @param exclusiveBenefits 权益管理
     * @return 结果
     */
    @Override
    public int insertExclusiveBenefits(ExclusiveBenefits exclusiveBenefits)
    {
        return exclusiveBenefitsMapper.insertExclusiveBenefits(exclusiveBenefits);
    }

    /**
     * 修改权益管理
     * 
     * @param exclusiveBenefits 权益管理
     * @return 结果
     */
    @Override
    public int updateExclusiveBenefits(ExclusiveBenefits exclusiveBenefits)
    {
        return exclusiveBenefitsMapper.updateExclusiveBenefits(exclusiveBenefits);
    }

    /**
     * 批量删除权益管理
     * 
     * @param BenefitIDs 需要删除的权益管理主键
     * @return 结果
     */
    @Override
    public int deleteExclusiveBenefitsByBenefitIDs(Long[] BenefitIDs)
    {
        return exclusiveBenefitsMapper.deleteExclusiveBenefitsByBenefitIDs(BenefitIDs);
    }

    /**
     * 删除权益管理信息
     * 
     * @param BenefitID 权益管理主键
     * @return 结果
     */
    @Override
    public int deleteExclusiveBenefitsByBenefitID(Long BenefitID)
    {
        return exclusiveBenefitsMapper.deleteExclusiveBenefitsByBenefitID(BenefitID);
    }
}
